
<div class="hd-main clearfix" id="header">
    <div class="conbox">
        <div class="navs">
            <span class="separate"></span>官方群:${p2p_get_global('qun')}
            <!--<span  class="separate"></span> 系统时间：
            <span class="systime"  font-color="ff9900" style="color: rgb(255, 153, 0);">${.now?string("yyyy/MM/dd HH:mm:ss")}</span>-->
        </div>
    [#if !Session.loginUser??]
        <div class="info">
            <!--登录后-->
            <a class="def-nav" href="${path}/member/common/login">登录</a>
            <a class="def-nav user-reg" href="${path}/member/common/register">免费注册</a>

        </div>
    [#else]
        <div class="info">
            <a class="def-nav" href="${path}/member/">${Session.loginUser.user_name}</a>
            <a class="def-nav user-reg" href="${path}/logout">退出登陆</a>

        </div>
    [/#if]
    </div>

</div>

<div class="clear"></div>
<div class="top-logo-menu-wrap">
    <div class="top-logo-menu">
        <div class="top-logo">
            <a href="/" target="_blank"><img src="${path}${p2p_get_global('logo')}" width="250" height="65" title=""></a>
        </div>

        <div class="top-menu">
            <ul id="top-menu-li">
                <li><a href="/">首页</a></li>
                <li><a href="${path}/bid"  >我要投资</a></li>
                <li><a href="${path}/bid/publish?category=2"">借款申请</a></li>
                <li><a href="${path}/article/list/activity">活动公告</a></li>

                <li><a href="${path}/member/">我的账户</a></li>
            </ul>
        </div>
    </div>
</div>
<link href="${path}/resources/plug/layui/css/layui.css" rel="stylesheet" type="text/css"/>
<script src="${path}/resources/plug/layui/layui.js" type="text/javascript"></script>
<script>
    $(function(){
        //会员中心菜单
        function showIndexSelectedMenu(){
            var menu = layui.data('menu');
            if(menu){
                $("ul#top-menu-li li").each(function(index){
                    if(menu.index_menu-1 == index){
                        $(this).addClass("active");
                    }else{
                        $(this).removeClass("active")
                    }
                });
            }
        }

        showIndexSelectedMenu();

        $("ul#top-menu-li li").click(function(){
            var index = $(this).index();
            layui.data("menu", {
                key: 'index_menu'
                ,value: index+1
            });
            showIndexSelectedMenu();
        });

        $("ul#top-menu-li  a").click(function(){
            $(this).parent().click();
            showIndexSelectedMenu();
        });
    });
</script>
